jquery表格插件Bootstrap Table |
您所在的位置:网站首页 › bootstrap table freeze header › jquery表格插件Bootstrap Table |
jquery表格插件Bootstrap Table
所属分类:UI-图表 779827 506 查看评论 (37) 分享到微信朋友圈X![]() ![]() ![]() 详细用法请查看demo,说明很详细。 2016-10-26更新(修改演示文件错误,和下载文件中引用地址错误问题) 注:加载了外部json文件,本地预览会有跨域问题,需要在服务端运行。 以下由晨之风-提供Bug描述用标签属性方式设置字段formatter时,发现没有效果:如:性别 原因:bootstrap-table.js第399行,代码中只判断了formatter typeof 为function的情况 解决办法:修改第399行代码块: 修改前 if (typeof that.header.formatters[j] === 'function') { value = that.header.formatters[j](value, item); }修改后: if (typeof that.header.formatters[j] === 'function') { value = that.header.formatters[j](value, item); }else if(typeof that.header.formatters[j] === 'string') { if(typeof window[that.header.formatters[j]] === 'function') { value = window[that.header.formatters[j]](value, item); } } PREVIOUS: NEXT: jquery信用卡验证插件Card jquery背景视屏插件CoverVid 相关插件-图表 查看更多![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 表头列太多,怎么可以左右滑动显示? 回复![]() ![]() ![]() ![]() ![]() ![]() ![]() |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |